import request from '/@/utils/request';

/**hr接口**/
export function departmentApi() {
    return {
        departmentList: (data) => {
            return request({
                url: '/hr/departmentList',
                method: 'POST',
                data,
            });
        }, allDepartmentList: (data) => {
            return request({
                url: '/hr/allDepartmentList',
                method: 'POST',
                data,
            });
        }, departmentTree: (data) => {
            return request({
                url: '/hr/departmentTree',
                method: 'POST',
                data,
            });
        }, departmentSave: (data) => {
            return request({
                url: '/hr/departmentSave',
                method: 'POST',
                data,
            });
        }, departmentDeleted: (data) => {
            return request({
                url: '/hr/departmentDeleted',
                method: 'POST',
                data,
            });
        }
    };
}
